package com.xauto.pioneer.appuser.model;

import org.json.JSONObject;

/**  提交开票信息返回
 * Created by Administrator on 2018/7/17.
 */

public class SubmitReceiptData extends BaseModel<SubmitReceiptData>{

    /** 发票信息*/
    public SubmitReceiptInfo receiptInfo;
    /** 余额信息*/
    public CheckoutMemberAccountInfo memberAccount;
    /** 邮寄服务费*/
    public String mailing_cost;
    @Override
    public SubmitReceiptData parse(JSONObject jsonObject) {
        if(jsonObject!=null){
        mailing_cost = jsonObject.optString("mailing_cost");
        receiptInfo = new SubmitReceiptInfo().parse(jsonObject.optJSONObject("receipt_info"));
        memberAccount = new CheckoutMemberAccountInfo().parse(jsonObject.optJSONObject("member_account_info"));
        return this;
        }
        return null;
    }
}
